package com.renjian.spring.day03.review;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class User {

    @Autowired
    @Qualifier("student")
    private Student student;


    public void add(){
        System.out.println("add.....");
        student.study();
    }
}
